import React, {Component} from "react";
import {
    View,
    StyleSheet,
}from 'react-native';
import NavigationBar from "../common/NavigationBar"
import ListViewTest from "../common/ListViewTest"

let data = [
    {
        "title": "考勤打卡",
        "icon": "md-stopwatch",
        "type": "work",
    },
    {
        "title": "设备巡查",
        "icon": "ios-paper",
        "type": "work",
    },
    {
        "title": "工作日志",
        "icon": "ios-folder-open",
        "type": "work",
    },
    {
        "title": "巡查记录",
        "icon": "ios-eye",
        "type": "work",
    },
    {
        "title": "扫一扫",
        "icon": "ios-qr-scanner",
        "type": "work",
    },
];

export default class WorkTool extends Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {
        return (
            <View style={styles.container}>
                <NavigationBar
                    title={"办公工具"}
                />
                <ListViewTest
                    data={data}
                    navigation={this.props.navigation}
                />
            </View>
        )
    }
}

const styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: "white",
    },
    text: {
        fontSize: 20,
    }
})